﻿using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;

namespace IdentityServer.EFCoreDbContext.Mapping
{
    public class AbpPermissionGrantsMapping: IEntityTypeConfiguration<AbpPermissionGrant>
    {
        public void Configure(EntityTypeBuilder<AbpPermissionGrant> b)
        {
           // b.ConfigureByConvention();
            b.ToTable("AbpPermissionGrant");
            b.Property(c => c.Id);
            b.Property(q => q.TenantId).HasComment("租户Id");
            b.Property(q => q.Name);
            b.Property(q => q.ProviderKey);
            b.Property(q => q.ProviderName);

        }
    }
}
